<html>
<head><meta charset="utf-8"><title>error: failed to read `src/tools/miri/cargo-miri/Cargo.toml` · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html">error: failed to read `src/tools/miri/cargo-miri/Cargo.toml`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="203778705"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20failed%20to%20read%20%60src/tools/miri/cargo-miri/Cargo.toml%60/near/203778705" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html#203778705">(Jul 13 2020 at 22:21)</a>:</h4>
<p>Anyone recognize this error? I can't do anything with x.py at all :(</p>
<div class="codehilite"><pre><span></span><code>$ x.py check
Updating only changed submodules
Submodules updated in 0.01 seconds
error: failed to read `/home/joshua/src/rustc2/src/tools/miri/cargo-miri/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
failed to run: /home/joshua/src/rustc2/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /home/joshua/src/rustc2/src/bootstrap/Cargo.toml
</code></pre></div>



<a name="203778826"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20failed%20to%20read%20%60src/tools/miri/cargo-miri/Cargo.toml%60/near/203778826" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html#203778826">(Jul 13 2020 at 22:23)</a>:</h4>
<p><code>git submodule deinit --all -f</code> seems to have fixed it</p>



<a name="203923751"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20failed%20to%20read%20%60src/tools/miri/cargo-miri/Cargo.toml%60/near/203923751" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html#203923751">(Jul 15 2020 at 07:29)</a>:</h4>
<p>yeah I was about to say looks like a submodule thing</p>



<a name="203923767"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20failed%20to%20read%20%60src/tools/miri/cargo-miri/Cargo.toml%60/near/203923767" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html#203923767">(Jul 15 2020 at 07:29)</a>:</h4>
<p>I have this in my .gitconfig:</p>
<div class="codehilite"><pre><span></span><code>[alias]
        subfix = submodule update --init --recursive
</code></pre></div>



<a name="203923782"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20failed%20to%20read%20%60src/tools/miri/cargo-miri/Cargo.toml%60/near/203923782" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html#203923782">(Jul 15 2020 at 07:30)</a>:</h4>
<p>and then I run <code>git subfix</code> basically after every pull/checkout</p>



<a name="203923839"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20failed%20to%20read%20%60src/tools/miri/cargo-miri/Cargo.toml%60/near/203923839" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html#203923839">(Jul 15 2020 at 07:30)</a>:</h4>
<p>there's also</p>
<div class="codehilite"><pre><span></span><code>[submodule]
        recurse = true
</code></pre></div>


<p>but that breaks rebasing so I had to disable it again :(</p>



<a name="204640735"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/error%3A%20failed%20to%20read%20%60src/tools/miri/cargo-miri/Cargo.toml%60/near/204640735" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/error.3A.20failed.20to.20read.20.60src.2Ftools.2Fmiri.2Fcargo-miri.2FCargo.2Etoml.60.html#204640735">(Jul 22 2020 at 08:25)</a>:</h4>
<p>I tend to run into broken submodules rather often myself. I do an update and the version of the submodule doesn't agree with what the top-level commit wants.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>